home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Software of the Month Club / Amiga General Interest Volume 212 (1995)(SOMC)(Disk 1 of y)[SMCxxxC30Ix].zip / Amiga General Interest Volume 212 (1995)(SOMC)(Disk 1 of y)[SMCxxxC30Ix].adf / DaFTP / Install-DaFTP < prev    next >
Text File  |  1995-02-09  |  4KB  |  175 lines

  1. ; $VER: Install_DaFTP 0.1 (1.2.94)
  2. ; Description: Installer script for DaFTP, a graphical FTP client
  3.  
  4. (complete 0)
  5.  
  6. (welcome "Welcome to the DaFTP installation utility.\n\n"
  7.     "This script installs the selected DaFTP client based "
  8.     "on your choice of TCP stacks.  It also installs any "
  9.     "complimentary files you decide to use.\n\n"
  10. )
  11.  
  12. (set daftp_dir
  13.     (askdir 
  14.         (prompt "Where should we install the DaFTP client? (A drawer will NOT be created for you)")
  15.         (help "This is where DaFTP and it's complimentary "
  16.             "files will be copied."
  17.         )
  18.         (default @default-dest)
  19.     )
  20. )
  21.  
  22. (complete 10)
  23.  
  24. (set daftp_type
  25.     (askchoice
  26.         (prompt "Select which version of DaFTP you wish to install")
  27.         (help "This will determine which protocol stack you "
  28.             "wish to use with DaFTP."
  29.         )
  30.         (choices "AS225" "AmiTCP")
  31.     )
  32. )
  33.  
  34. (if (= daftp_type 0)
  35.     (copyfiles
  36.         (source "DaFTP_AS225")
  37.         (dest daftp_dir)
  38.         (newname "DaFTP")
  39.         (prompt "Installing AS225 DaFTP")
  40.         (help "The AS225 version of DaFTP will be installed in "
  41.             "the directory you selected."
  42.         )
  43.         (optional "force" "askuser")
  44.         (confirm)
  45.         (infos)
  46.     )
  47.     (
  48.         (copyfiles
  49.             (source "DaFTP_AmiTCP")
  50.             (dest daftp_dir)
  51.             (newname "DaFTP")
  52.             (prompt "Installing AmiTCP DaFTP")
  53.             (help "The AmiTCP version of DaFTP will be install in "
  54.                 "the directory you selected."
  55.             )
  56.             (optional "force" "askuser")
  57.             (confirm)
  58.             (infos)
  59.         )
  60.     )
  61. )
  62.  
  63. (complete 40)
  64.  
  65. (copyfiles
  66.     (source "DaFTPAbout.anim")
  67.     (dest daftp_dir)
  68. )
  69.  
  70. (if (askbool 
  71.         (prompt "Do you want to install the sample hotlist?")
  72.         (help "This will install a sample hotlist file with some "
  73.             "sample entries as your default hotlist file."
  74.         )
  75.     )
  76.     (copyfiles
  77.         (source "SampleHotlist.prefs")
  78.         (dest daftp_dir)
  79.         (newname "DaFTPHotlist.prefs")
  80.         (optional "force")
  81.     )
  82. )
  83.  
  84. (complete 50)
  85.  
  86. (set install-rexx 
  87.     (askbool
  88.         (prompt "Do you want to install the ARexx files?")
  89.         (help "There are a few ARexx files which make DaFTP more "
  90.             "useful.  One file is for post-processing of downloaded "
  91.             "files.  Another is an Aminet browsing script which "
  92.             "uses DaFTP to effectively recreate ADT."
  93.         )
  94.     )
  95. )
  96.  
  97. (set install-processfile 0)
  98. (set install-browse 1)
  99.  
  100. (if install-rexx
  101.     (set rexx-to-install
  102.         (askoptions
  103.             (prompt "Select the ARexx scripts which you wish to copy")
  104.             (choices "ProcessFile.Rexx  Post processing"
  105.                      "Browse.DaFTP      Aminet Browser"
  106.             )
  107.             (help "ProcessFile.Rexx allows for configured post-processing "
  108.                 "of downloaded files.  By editing the script, you may "
  109.                 "select the type of viewer to use on a particular file "
  110.                 "extension.  See the script for more details.\n\n"
  111.                 "Browse.DaFTP is a script that controls DaFTP to allow for "
  112.                 "browsing of Recent files on Aminet.  It uses Amigaguide "
  113.                 "documents to build lists of recent files, allows file "
  114.                 "searches (AmiTCP only), file marking, and more."
  115.             )
  116.         )
  117.     )
  118. )
  119.  
  120. (if (IN rexx-to-install install-processfile)
  121.     (copyfiles 
  122.         (source "Rexx/ProcessFile.rexx")
  123.         (dest "REXX:")
  124.         (prompt "Installing ARexx script for file processing")
  125.         (help "ProcessFile.rexx is an ARexx script that automatically "
  126.             "processes a downloaded file.  It can for example show "
  127.             "text files, play samples, etc."
  128.         )
  129.         (optional "force" "askuser")
  130.         (confirm)
  131.     )
  132. )
  133.  
  134. (complete 70)
  135.  
  136. (if (IN rexx-to-install install-browse)
  137.     (
  138.         (copyfiles    
  139.             (source "Rexx/Browse.DaFTP")
  140.             (dest "REXX:")
  141.             (prompt "Installing ARexx script for Aminet browsing")
  142.             (help "Browse.DaFTP is an ARexx script that controls DaFTP "
  143.                 "to browse through Aminet's recent files.  It is "
  144.                 "recommended to either put DaFTP in your path, or "
  145.                 "make a link to DaFTP somewhere in your path"
  146.             )
  147.             (optional "force" "askuser")
  148.             (confirm)
  149.         )
  150.         (copyfiles
  151.             (source "Rexx/BrowseAminet.guide")
  152.             (dest "HELP:")
  153.             (prompt "Installing Amigaguide help for Browse.DaFTP")
  154.             (help "This installs a nice help file for Browse.DaFTP "
  155.                 "in your HELP: directory, which should be in your "
  156.                 "Amigaguide path."
  157.             )
  158.             (optional "force" "askuser")
  159.             (confirm)
  160.         )
  161.     )
  162. )
  163.  
  164. (complete 80)
  165.  
  166.  
  167. (set @default-dest daftp_dir)
  168.  
  169. (message "Your installation of DaFTP is now complete. "
  170.     "Special note of this version: The program prefs format "
  171.     "has changed to an ASCII format.  To avoid problems, "
  172.     "please resave your preferences, if you have a previously "
  173.     "installed version of DaFTP."
  174. )
  175. (complete 100)